// import fetch from '@/config/fetch'
import {get, post} from "../config/https_method";

/**
 * 管理员分页列表
 */
export const getAdminPageList = data => get('/association/administrator/getPageAdminByName', data);

/**
 * 管理员列表
 */
export const getAdminList = query => get('/association/administrator/getAdmins', query);
/**
 * 获取一个管理员
 */
export const getAdmin = data => get('/association/administrator/getAdminById', data);
/**
 * 删除
 */
export const deleteAdmin = data => post('/association/administrator/deleteAdmin', data);
/**
 * 修改
 */
export const updateAdmin = data => post('/association/administrator/updateAdmin', data);

/**
 * 添加
 */
export const addAdmin = data => post('/association/administrator/addAdmin', data);
